package com.jiezhuo.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.util.List;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author com.jiezhuo
 * @since 2022-09-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("sys_device")

@ApiModel(value="Device对象", description="")
public class Device implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "device_id", type = IdType.ID_WORKER)
    private String deviceId;

    private String deviceName;

    @ApiModelProperty(value = "设备类型, 默认10")
    private String type;

    @ApiModelProperty(value = "图片路径")
    private String img;

    @ApiModelProperty(value = "设备密码")
    private String pass;

    @ApiModelProperty(value = "设备定位经纬度")
    private String position;

    @ApiModelProperty(value = "设备定位地址描述")
    private String address;

    @ApiModelProperty(value = "定位类型：0不定位 1固定位置 2设备自动定位")
    private String positionType;

    @ApiModelProperty(value = "云组态开关")
    private String funcCloud;

    @ApiModelProperty(value = "云监测开关")
    private String funcMonitor;

    @ApiModelProperty(value = "是否为透传协议设备，0：不是 1：是")
    private String isTransProtocol;

    private LocalDateTime createTime;

    private LocalDateTime updateTime;

    @TableField(exist=false)
    private List<StreamProxy> streamProxies;


}
